package cn.wolfcode.service;

import cn.wolfcode.domain.Consumption;
import cn.wolfcode.qo.ConsumptionQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IConsumptionService {
    void delete(Long id);
    void insert(Consumption consumption);
    Consumption get(Long id);
    List<Consumption> listAll();
    void update(Consumption consumption);
    // 添加分页功能
    PageInfo<Consumption> query(ConsumptionQueryObject qo);

    // 有预约,添加结算单
    Long save(Long aid);

    // 结算
    Long consume(Consumption consumption);

    // 审核
    Long audit(Consumption consumption);
}
